import request from '@/utils/request'

// 查询药品出库记录列表
export function listOutrecord(query) {
  return request({
    url: '/medicine/outrecord/list',
    method: 'get',
    params: query
  })
}

// 查询药品出库记录详细
export function getOutrecord(storageOutId) {
  return request({
    url: '/medicine/outrecord/' + storageOutId,
    method: 'get'
  })
}

// 新增药品出库记录
export function addOutrecord(data) {
  return request({
    url: '/medicine/outrecord',
    method: 'post',
    data: data
  })
}

// 修改药品出库记录
export function updateOutrecord(data) {
  return request({
    url: '/medicine/outrecord',
    method: 'put',
    data: data
  })
}

// 删除药品出库记录
export function delOutrecord(storageOutId) {
  return request({
    url: '/medicine/outrecord/' + storageOutId,
    method: 'delete'
  })
}
